<template>
    <!--常规-->
    <div id="RoutineDetails">
        <v-details :detailData="inputData" :inputConfig="inputConfig" ref="input"></v-details>
    </div>
</template>

<script>
    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        mixins: [baseMixin],
        props: {
            inputData: {
                type: Object
            }
        },
        name: "RoutineDetails",
        data() {
            return {
                inputConfig: [
                    [
                        {
                            type: "input",
                            label: this.$t('in.buyername'),
                            disabled: false,
                            props: "buyername"
                        },
                        {
                            type: "map",
                            label: this.$t('config.address',{no:'1'}),
                            disabled: false,
                            props: "buyeraddress1"
                        },
                        {
                            type: "map",
                            label: this.$t('config.address',{no:'2'}),
                            disabled: false,
                            props: "buyeraddress2"
                        },
                        {
                            type: "map",
                            label: this.$t('config.address',{no:'3'}),
                            disabled: false,
                            props: "buyeraddress3",
                        },
                        {
                            type: "map",
                            label: this.$t('config.address',{no:'4'}),
                            disabled: false,
                            props: "buyeraddress4",
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('config.city'),
                            disabled: false,
                            props: "buyercity"
                        },
                        {
                            type: "input",
                            label: this.$t('config.provice'),
                            disabled: false,
                            props: "buyerstate"
                        },
                        {
                            type: "input",
                            label: this.$t('config.postcode'),
                            disabled: false,
                            props: "buyerzip"
                        },
                        {
                            type: "input",
                            label: this.$t('in.sellervat'),
                            disabled: true,
                            props: "buyervat"
                        },
                    ],
                ],
            }
        },
        methods: {},
        mounted() {
        },
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>

